export function ll_import(){
    let Navigation;
    let Direction;
    //导航API
    if (ll.hasExported("direction", "add_direction")) {
        Navigation = {
            new: ll.import('NavAPI_newTask'),
            clear: ll.import('NavAPI_clearTask'),
            has: ll.import('NavAPI_hasTask')
        };
    }else {
        logger.warn('导航插件未安装, 坐标记录的导航功能将不会启用(https://www.minebbs.com/resources/navigationapi-api.4423/) ');
    }
    
    //罗盘API
    if (ll.hasExported("direction", "add_direction")) {
        Direction = {                 //API导入
            add: ll.import('direction', 'add_direction'),
            del: ll.import('direction', 'del_direction'),
            list: ll.import("direction", "list_direction"),
            stop: ll.import("direction", "stop_direction"),
            start: ll.import("direction", "start_direction")
        };
    }else{
        logger.warn('罗盘api插件未安装, 坐标记录的罗盘功能将不会启用(https://www.minebbs.com/resources/api.5136/) ');
    }
    return {Direction, Navigation};
}

